package com.xayy.health.mgt.model;

import cn.kawins.mybatis.base.BaseModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 卫星关系组
 * @author zhangxa
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "HEALTH.tb_satellite_edge")
@EqualsAndHashCode(callSuper = true)
public class SatelliteEdge extends BaseModel<Long> {

    @Id
    @Column(name = "id")
    private Long id;

    @Column(name = "node_id")
    private Long nodeId;

    @Column(name = "edge_from")
    @ApiModelProperty(value = "from")
    private Long from;

    @Column(name = "edge_to")
    @ApiModelProperty(value = "to")
    private Long to;

    @Column(name = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @Column(name = "update_time")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @Override
    public Long idValue() {
        return id;
    }
}
